import {
    HTTP
} from '../util/http-p'
// 这个模板采用Promise方式编写
class BookModel extends HTTP {
    getHotList() {
        return this.request({
            url: 'book/hot_list'
        })
    }
    getDetail(bid) {
        return this.request({
            url: 'book/' + bid + '/detail'
        })
    }

    getLikeStatus(bid) {
        return this.request({
            url: '/book/' + bid + '/favor'
        })
    }

    getMyBookCount() {
        return this.request({
            url: '/book/favor/count'
        })
    }

}

export {
    BookModel
}